<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	//倒计时的对象
	var interval;

	function startTime() {
		//倒计时，参数1：函数，执行的内容 参数2:隔多长时间执行一次，单位是毫秒
		interval = setInterval("changeTime()", 1000);
	}

	function changeTime() {
		//查找控件
		var s = document.getElementById("t");
		//获取内容
		var i = s.innerHTML;
		//每隔1s时间减1
		i = i - 1;
		if (i < 0) {
			window.clearInterval(interval);
			//结束倒计时跳转登录页面
			window.location.href = "login.jsp";
		} else {
			//赋值
			s.innerHTML = i;
		}

	}
</script>
</head>
<body onload="startTime()" bgcolor="#FCFDEF">
	<!--注册成功了，过5s之后跳转到登录页面  -->
<div   align="center" >
	<table  style="padding-top: 300px;"  >

		<tr  >
			<td rowspan="2"><img alt="img" src="images/success.jpg"></td>
			<td style="padding-top:50px;padding-left: 10px;"><font color="red">注册成功，别忘记激活账户哦！</font></td>	
		</tr>
		<tr>
			<td style="padding-bottom:50px;padding-left: 10px;"><span id="t" style="color:green;">5</span><font color="green">秒后自动为您跳转到登录页面</font></td>
		</tr>
	</table>
</div>

</body>
</html>